/*

*** This do file creates the replication results for 

Is the allocation of food aid free from donor interest bias?, Journal of Development Studies , 41 (3), 2005, pp. 394-411

Eric Neumayer (LSE)																			

Please report any errors to e.neumayer@lse.ac.uk

*/

use "Article for JDS (food aid).dta", replace

* Table 2
xi: dprobit fustotal  lnpop  lngdp refugees    calorie selfsuff usmilgrants  colsus unus shareusfoodexports distus  protcath   i.year , robust nolog
outreg using c:\table2, replace
xi: xtgee flnustotal lnpop  lngdp refugees    calorie selfsuff usmilgrants  colsus unus shareusfoodexports distus  protcath   i.year if fustotal>0, robust nolog
outreg using c:\table2, append
xi: dprobit fusemergency  lnpop  lngdp refugees    calorie selfsuff usmilgrants  colsus unus shareusfoodexports distus  protcath   i.year , robust nolog
outreg using c:\table2, append
xi: xtgee flnusemergency lnpop  lngdp refugees    calorie selfsuff usmilgrants  colsus unus shareusfoodexports distus  protcath   i.year if fusemergency>0, robust nolog
outreg using c:\table2, append

* Table 3
xi: dprobit feutotal  lnpop  lngdp refugees    calorie selfsuff usmilgrants  colsec unecfood shareeufoodexports distec  protcath   i.year , robust nolog
outreg using c:\table1, replace
xi: xtgee flneutotal  lnpop  lngdp refugees    calorie selfsuff usmilgrants  colsec unecfood shareeufoodexports distec  protcath   i.year if feutotal>0, robust nolog
outreg using c:\table1, append
xi: dprobit feuemergency  lnpop  lngdp refugees    calorie selfsuff usmilgrants  colsec unecfood shareeufoodexports distec  protcath   i.year , robust nolog
outreg using c:\table1, append
xi: xtgee flneuemergency  lnpop  lngdp refugees    calorie selfsuff usmilgrants  colsec unecfood shareeufoodexports distec  protcath   i.year if feuemergency>0, robust nolog
outreg using c:\table1, append

* Table 4
xi: dprobit fwfptotal  lnpop  lngdp refugees    calorie selfsuff usmilgrants  cols unwestfood sharewestfoodexports distwest  protcath   i.year , robust nolog
outreg using c:\table3, replace
xi: xtgee flnwfptotal lnpop  lngdp refugees    calorie selfsuff usmilgrants  cols unwestfood sharewestfoodexports distwest  protcath   i.year if fwfptotal>0, robust nolog
outreg using c:\table3, append
xi: dprobit fwfpemergency  lnpop  lngdp refugees    calorie selfsuff usmilgrants  cols unwestfood sharewestfoodexports distwest  protcath   i.year , robust nolog
outreg using c:\table3, append
xi: xtgee flnwfpemergency lnpop  lngdp refugees    calorie selfsuff usmilgrants  cols unwestfood sharewestfoodexports distwest  protcath   i.year if fwfpemergency>0, robust nolog
outreg using c:\table3, append

* Table 5
xi: dprobit fngototal  lnpop  lngdp refugees    calorie selfsuff usmilgrants  cols unwestfood sharewestfoodexports distwest  protcath   i.year , robust nolog
outreg using c:\table4, replace
xi: xtgee flnngototal  lnpop  lngdp refugees    calorie selfsuff usmilgrants  cols unwestfood sharewestfoodexports distwest  protcath   i.year if fngototal>0, robust nolog
outreg using c:\table4, append
xi: dprobit fngoemergency  lnpop  lngdp refugees    calorie selfsuff usmilgrants  cols unwestfood sharewestfoodexports distwest  protcath   i.year , robust nolog
outreg using c:\table4, append
xi: xtgee flnngoemergency  lnpop  lngdp refugees    calorie selfsuff usmilgrants  cols unwestfood sharewestfoodexports distwest  protcath   i.year if fngoemergency>0, robust nolog
outreg using c:\table4, append


